﻿
@{
    Layout = null;
}
<!--权限未加载，这里保持模板未null-->
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>系统登录</title>
    <link href="~/Content/login.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.12.4.js"></script>
    <script src="~/Scripts/Cookie/jquery.cookie.js"></script>
</head>
<body>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        <input type="hidden" name="ReturnUrlString" id="ReturnUrlString" value="" />
        <script type="text/javascript">
        $(document).ready(function () {
            $("#ReturnUrlString").attr("value", "@Request.QueryString["ReturnUrl"]");
            //初始化页面时验证是否记住了密码
                $("#UserNO1").val($.cookie('rmuser'));
                $("#EnterpriseCode").val($.cookie('rmcode'));

            $(":submit").click(function () {
                $.cookie('rmuser', $("#UserNO1").val(), { expires: 7 });
                $.cookie('rmcode', $("#EnterpriseCode").val(), { expires: 7 });
            });

        });
        </script>

        <div class="container">
            <div class="info">
                <h2>天枢商业管理系统</h2><span>版本号:<i class="fa fa-heart"></i> 6.20.1</span>
            </div>
        </div>
        <div class="form" ng-app="myApp" ng-controller="myCtrl">
            <div class="thumbnail">
                <img src="~/Content/Image/logo_128px_.png" />
            </div>

            <input type="text" placeholder="门店代码" name="EnterpriseCode" id="EnterpriseCode" />
            <input type="text" placeholder="账号" name="UserNO1" id="UserNO1" />@*这样做是防止新增用户时调用cookie信息*@
            <input type="password" placeholder="密码" name="Password1" id="Password1" />
            <input type="submit" value="登录" ng-click="saveCookie()" />
            @ViewBag.ErrorMessage
            <p class="message">账号没开通? <a href="http://www.fcnsoft.com/page/donate" target="_blank">联系我</a></p>
        </div>
    }
</body>
</html>
